<?

/** Base class for any solib class.
 *  @var int $Error Error no. if any. Use setError to set both Error no
 *  and msg.
 *  @var string $ErrorMsg Message related to Error.
 */
class soBaseClass {
    var $Error;
    var $ErrorMsg;

    function soBaseClass() {
        $this->Error = 0;
        $this->ErrorMsg = "";
    } // soBaseClass

    
    /** Sets/unsets and error and message
     *  @param int Error Error no.
     *  @param string ErrorMsg Error message.
     */
    function setError($Error, $ErrorMsg = "") {
        $this->Error = intval($Error);
        $this->ErrorMsg = $ErrorMsg;
    } // setError
    
}; // soBaseClass

?>
